//
//  zteQhdPlugin.h
//  govcarmanage
//
//  Created by jiacheng wang on 2017/6/12.
//
//

#import <RSKImageCropper/RSKImageCropViewController.h>
#import <MobileCoreServices/UTCoreTypes.h>
#import <Foundation/Foundation.h>
#import <Cordova/CDVPlugin.h>
#import <AVFoundation/AVFoundation.h>

@interface ZTEImagePicker : UIImagePickerController

@property (copy) NSString* callbackId;

@end

@interface ZTERSKImageCropViewController: RSKImageCropViewController

@property (copy) NSString* callbackId;

@end

@interface zteQhdPlugin : CDVPlugin <UINavigationControllerDelegate,UIImagePickerControllerDelegate,UIPopoverControllerDelegate,RSKImageCropViewControllerDelegate>
{
    ZTEImagePicker* pickerController;
    ZTERSKImageCropViewController* rskpickerController;
}

- (void)getAuthInfo:(CDVInvokedUrlCommand*)command;

- (void)showMainApp:(CDVInvokedUrlCommand*)command;

- (void)updateApp:(CDVInvokedUrlCommand*)command;

- (void)version:(CDVInvokedUrlCommand*)command;

- (void)upjpush:(CDVInvokedUrlCommand*)command;

- (void)refresh:(CDVInvokedUrlCommand*)command;

- (void)toast:(CDVInvokedUrlCommand*)command;

- (void)uploadFiles:(CDVInvokedUrlCommand*)command;

- (void)isClickNotifi:(CDVInvokedUrlCommand*)command;

- (void)getImage:(CDVInvokedUrlCommand*)command;
- (void)cropImage:(CDVInvokedUrlCommand*)command;

- (void)imagePickerController:(UIImagePickerController*)picker didFinishPickingMediaWithInfo:(NSDictionary*)info;
- (void)imagePickerControllerDidCancel:(UIImagePickerController*)picker;
- (void)imageCropViewControllerDidCancelCrop:(RSKImageCropViewController *)controller;
- (void)imageCropViewController:(RSKImageCropViewController *)controller didCropImage:(UIImage *)croppedImage usingCropRect:(CGRect)cropRect;

@end
